/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2022-12-17
 * Time: 16:37
 */
public class ThreeOdd {
    public static boolean threeOdd(int[] array) {
        int j = 0;
        for (int i = 0; i < array.length-2; i++) {
            if (array[i] % 2 == 1
                    && array[i + 1] % 2 == 1
                    && array[i + 2] % 2 == 1) {
                j = 1;
                break;
            }
        }
        return j == 1;
    }
    public static void main(String[] args) {
        int[] array = new int[]{1,2,34,3,4,5,7,23,12};
        boolean s = threeOdd(array);
        System.out.println(s);
    }
}
